/****************************************************
    ScriptName:        dash.cs
    Author:            摸鱼程序男
    CreatTime:    2020/12/24 17:3:45
    Description:     Nothing
*****************************************************/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using UnityEngine.UI;
using DG.Tweening;
using System.Linq;



namespace HQL
{
	public class dashgogo :MonoBehaviour
	{
        public GameObject shoot_damage;
        protected void dash_rush() {

            transform.position = Vector3.MoveTowards(transform.position, new Vector3(1f, 2f, 0), 12f);
            GameObject.Instantiate(shoot_damage, transform.position, Quaternion.identity);
            //euger=360 / count;
            //Vector3 rotate = 0;
            //for()
            //{
            //    rotate += new Vector3(eguer);
            //    GameObject.Instantiate(shoot_damage, transform.position, Quaternion.Euler(rotate));
            //}
        }
        private void OnEnable()
        {
            dash_rush();
        }
    }
}